<%@page import="com.cubomagicogoias.site.DAO"%>
<%@page import="com.cubomagicogoias.site.Sessao"%>
<%
	String email = request.getParameter("email");
	String chk = request.getParameter("chk");
	if (email == null || chk == null) {
		response.sendRedirect("/");
		return;
	}
	Sessao sessao = Sessao.init(request);
	DAO dao = DAO.init(request);
%>

<article>
	<h2>Identifique-se</h2>

	<form action="pessoa.MudaSenha" method="get">
		<p>
			<label>Email:</label> <input type="text" name="email1"
				value="<%=email%>" size=40 disabled="disabled" /> <input
				type="hidden" name="email" value="<%=email%>" /><input
				type="hidden"  name="chk" value="<%=chk%>" />
		</p>
		<p>
			<label>Informe sua nova senha:</label> <input type="password"
				id="pwd1" name="pwd1" value="" />
		</p>
		<p>
			<label>Confirme a nova senha:</label> <input type="password"
				id="pwd2" name="pwd2" value="" />
		</p>
		<p class="submit">
			<input type="submit" value="Mudar a senha">
		</p>
		<%=sessao.showError()%></form>
</article>
